import matplotlib.pyplot as plt
score=[12,23,34,45,56,67,78,89,98,87,74,76,65,54,43,32,21,123,321,456,654,987,789,741,852,963,369,74,85,96,3,2133]
plt.rcParams['font.sans-serif']=['SimHei']
plt.xlabel('分数')
plt.ylabel('学生数量')
plt.title('学生数学成绩分布直方图')
plt.hist(score,bins=range(0,150,10),facecolor='blue',edgecolor='red')
plt.show()